package xxx.host.mpapi.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author yuanchengman
 * @date 2021-08-13
 */
@RestController
@RequestMapping("/home")
public class HomeController {

    @GetMapping("/test/invoke")
    public String testInvoke(){
        return LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
    }
}
